package com.Cychat.commons.entity.pojo;


import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;

@Data
@TableName("favorite")
public class Favorite {
    @Schema(description="收藏ID")
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Integer favoriteId;
    @Schema(description="用户ID")
    private Long userId;
    @Schema(description="目标ID(帖子ID或商品ID)")
    private Integer targetId;
    @Schema(description="收藏类型(post-帖子/product-商品)")
    private String type;
    @Schema(description="收藏时间")
    private Date createTime;
}